package com.lannuokeji.biz.items.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 申请设备
 * </p>
 *
 * @author lannuoTeck
 * @since 2018-03-19
 */
@TableName("g_items_device_apply")
public class DeviceApply extends Model<DeviceApply> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 开始时间
     */
    @TableField("startTime")
    private Date startTime;
    /**
     * 结束时间
     */
    @TableField("endTime")
    private Date endTime;
    /**
     * 申请原因
     */
    private String purpose;
    /**
     * 用户id
     */
    @TableField("userId")
    private String userId;
    /**
     * 拒绝原因
     */
    private String refused;
    /**
     * 状态：
0 审核中、
1 审核通过、
2 未通过、
3 正在使用、
4 归还成功、
5 已申请归还，归还中
     */
    private Integer status;
    /**
     * 借出时高拍仪图片
     */
    private String img;
    @TableField("createTime")
    private Date createTime;
    @TableField("updateTime")
    private Date updateTime;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRefused() {
        return refused;
    }

    public void setRefused(String refused) {
        this.refused = refused;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DeviceApply{" +
        ", id=" + id +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", purpose=" + purpose +
        ", userId=" + userId +
        ", refused=" + refused +
        ", status=" + status +
        ", img=" + img +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
